<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PCMS内容管理系统</title>
<link href="<?php echo $_tpl['css']; ?>admin.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
	function wconfirm( id )
	{
		if ( id != undefined )
		{
			var ok = window.confirm( '确认要发布?' );
			if ( ok )
			{
				location.href = 'del_html.php?id=' + id;
			}
		}
	}
</script>
</head>

<body style='width:98%;'>
<center><h3>发布文件</h3></center>
<table width="40%" border="0" align="center" cellpadding="5" cellspacing="1">
	<tr>
		<td height="20"><!--<input class="btn2" type="button" onclick="window.location.href='add_html.php';" value="添加" />--></td>
		<td></td>
	</tr>
	<tr>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">栏目</span></td>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">操作</span></td>
	</tr>
	<?php
	foreach ( $cate_data as $index => $value )
	{
		$bgcolor = $index % 2 ? '#323232' : '#272727';

	?>
	<tr>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo str_repeat( '&nbsp;&nbsp;', $value['level'] ) . $value['cname']; ?></td>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><a href="javascript:wconfirm(<?php echo $value['id']; ?>);">发布</a></td>
	</tr>
	<?php
	}
	?>
<?php
	if ( isset( $bar ) )
	{
?>
	<tr>
		<td height="20" colspan="16" align="center" bgcolor="#000000">
			<table width="30%"><tr align="center"><td><a href="<?php echo $bar['first_link']; ?>">首页</a></td><td><a href="<?php echo $bar['prev_link']; ?>">上一页</a></td><td><?php echo $bar['current']; ?> / <?php echo $bar['page']; ?></td><td><a href="<?php echo $bar['next_link']; ?>">下一页</a></td><td><a href="<?php echo $bar['last_link']; ?>">尾页</a></td></tr></table>
		</td>
	</tr>
<?php
	}
?>
</table>
</body>
</html>